@extends('admin.main')
@section('head')
    <script src="/static/citys/jquery.citys.js" type="text/javascript"></script>
@endsection
@section('body')
    <div class="main-title">
        <h2>扫呗支付配置</h2>
    </div>
    <div class="tab-wrap">
        <div class="tab-content">
            <form action="" method="post" class="form-horizontal">

                <div class="form-item">
                    <label class="item-label">
                        商户名称：{{isset($info['shop_name']) ? $info['shop_name']: ''}}
                    </label>
                </div>
                <div class="form-item">
                    <label class="item-label">
                        商户号<span class="check-tips"></span>
                    </label>
                    <div class="controls">
                        <input type="text" name="merchant_no" class="text input-large" placeholder=""
                               value="{{isset($info['sao_pay']['merchant_no']) ? $info['sao_pay']['merchant_no'] : ''}}">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">
                        终端号<span class="check-tips"></span>
                    </label>
                    <div class="controls">
                        <input type="text" name="terminal_id" class="text input-large" placeholder=""
                               value="{{isset($info['sao_pay']['terminal_id']) ? $info['sao_pay']['terminal_id'] : ''}}">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">
                        令牌<span class="check-tips"></span>
                    </label>
                    <div class="controls">
                        <input type="text" name="token" class="text input-large" placeholder=""
                               value="{{isset($info['sao_pay']['token']) ? $info['sao_pay']['token'] : ''}}">
                    </div>
                </div>
                    <!-- 高级 -->
                    <div class="form-item">
                        <input type="hidden" name="shop_id" value="{{isset($info['id']) ? $info['id'] : ''}}">
                        <input type="hidden" name="id" value="{{isset($info['sao_pay']['id']) ? $info['sao_pay']['id'] : ''}}">
                        <button type="submit" id="submit" class="btn submit-btn ajax-post"
                                target-form="form-horizontal">确 定
                        </button>
                        <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                    </div>
            </form>
        </div>
    </div>
@endsection

